solve a bug on stations data refresh in search mode, refactoring