Fixed incorrect checking of loader state & unable to properly dispatch component.