fixed building with debug flag = true