Fixed issue that prevented files with keys from being decrypted properly