fixing question nil issue in code_of_last_attempt