fix for debug flag