bug fixed in valveclass