Fixed an issue which caused unexpected rendering.