bug fix for appending ajax data