Prevent directory field from being null