fix for incorrect method name and first condition hash when value is nil