fixes bug in cons update