Fixed wrong ajax requests