Fixing error in Z combinator