Fixed errors arising from compiling DQM