fixed a bug of loader