Fixing bug. Formating responses