fix for http 307