Fix sprite flashing and another mistake of mine