Fixed passing debug flag