Fix nullpointer exception I'm having on my server