Fix npe on load