fixing rendering issues