fixes annoying ajax add bug