Fixed an element rendering inefficiency