fixed more rendering bugs