fix to custom select issue #1064