Fix call to with invalid parameters ($num = 0)