Fix issue with exam command