Fix the fencing type and move it to model

fixes BZ #1143047