Fix nullpointerexception place