Fixed #3 on exception when handling set type value