solve bugs ajax flash