fixed a bug in the content loader