fixing calls to stat so they are local_actions