fixed key file lib printing error