Fixed bug causing selections to not render sometimes.