[#122] Fixing crash and reparing the % limit correct

Relative issue: #122

The crash should not appear anymore now. I also fixed a bug in *% limit of good answers* to get the percent of correct students.