Fixed incorrect call to a function