Fix compile issue with guard