Fixed problem with nullpointer exception