Fixed a NullPointerException (dumbass)