Fixed a expiration date bug in the licenses API