make phonegap friendly structure, fixed body recover bug