fix rendering issues