Make final if not in deploy state