Fixed build in debugging mode