fixed issue with running machine multiple times before reloading page