Fix conflict between method definitions and chain function calls