Fixed a crashing and glitching bug from transparent sorting