Fixed another bug where sprites could become misaligned