fixed expired check