fix data loading problem on Safari