fixing bug on master station mixed into schedule_all_stations function