fixed null pointer exception sortby without filter