fixed quiz completion npe bug