fixed problem with NPE when loaderOnReset