fixes user agent bug when specifying own user agent, really closes #264