objFunction applies mask correctly in 1D