fixed rendering bugs on chrome