Fixed display bug of custom sprites