fixed code to check whether a quiz is being continued