fixed bug in detect 406: Not Acceptable