fix bug in page coming from cookies ##