Fixed errors that happen when using debug builds of dscanner