Fix bug when ensure is absent