fix ensure