fixing rendering error