fixed issue with load previous key