Fixed NPE due to extreme tiredness. =/