fix bug where button is disabled after assignment creation.