Fix bug in curry.