the enter is not being updated correctly