Fix old level data bug & make ready for cordova3