fixed bug of loader