fix issue with sprites