Qcheck

Fixed some qcheck bugs