fixed error in cookie controller