fixes #1142

null check for loaded values