sprite location error solved