fixes #327, adjusting debug flag