fixed misc rendering issues