Fixed rendering popup bug