Fixing bug in engagement helper