Fixed `render` method