fix composer dispose