Fixed lifecycle flag to be enum