Possible workaround for the nullpointers.