fixed fix for bug with sprite