Fixed rendering bugs.