fix small bugs with debug build