fixing loading directive bug