fix for compressed keys