Fixed some errors when valve is vertical but still not working fine :(