fix ajax addition of bugs