I solved it. Removing from parent does not save the variable information, so I stored the variable in another BP.