compile fix in debug mode