Fixed the bug in dynamic add of visit complaints