Fixed Q/columns close method to update state.max earlier