fix parsing of server answer