Forgot to set flag with the add function