Fixing usage of lastRenderSize