Fixing bug caused by rename of motions to proposals