Fixede nullpointerexcetption.