bug with sprites