Fix .render(:extension()) logic