nullpointerexception fixed in M3