fixing rendering issue