Solved bug if run function is provided without parameters