Fixed error in function calls.