Fix render method