Small nullexception fix