fixed typo in drawRec