fixes shift-enter on the last cell