fixed non existing method call to get cookies