Fixed bad parameters for function calls.