Fix inventory states consistency