Fixes index out of bounds error in oecontrolsbuttonsetupview