sprite class fixes