Fixed bug when no accept specified