Fixed call to function