Fixed a bug when setting tint of sprites.