useragent fix

in a way it is compatible with older user agent