Fixed missing state=directory