Fixed persisting directive bug.