fixed most of bugs, now Subpart could work correctly!