Fixed nullpointer at startup.