Fixed null issue for loading handlers.