Critical fix for student code setting stack size too large