Fixed problem with sprite classes.