fixing add bug