Fixes the issue that it wouldn't properly pass the expiration time