MOB-117: function in loop removed from add-story