Issue refs #1598: fix bug in binding, add error msg to modal too