fix load images error