fix constructor in inv command