compile fix for debug mode