fix bug transition on phonegap