fixed nullpointerexception at startup