Fixed issue in Sprites class

- Thanks, FindBugs