fixed bug: invalid license key error when resuming application from background