fix index out of bounds for content loader