fix sprite rendering glitch
mostly small fixes