Fix a pixel loading bug