Try to workaround nullpointer.