fix ajax registerIntent