Fixed a bug when using set modifier type
Added an example app