Fix bug with default path and flags are never null