[core-utils] fix check maxWidth param