Changed local for static in sprites variables