fixed a bug that cannot set value to connected parameter
removed unused state parameters