Fix bug : completed didn't return correct state.