Fixed wrong argument to function call