Fixed an incredibly derpy NullPointerException. Sorry, I'll try to test before pushing from henceforth.