Fixed the last key not updating.