Fix FunctionClauseError in builder