Function 'OnRep_IndexOnHand' called from On Rep Index on Hand should not be called from a Blueprint

Hello,
I have this repNotify variable IndexOnHand and from time to time I get this error

  • ‘Function ‘OnRep_IndexOnHand’ called from On Rep Index on Hand should not be called from a Blueprint’

I need to remove the replication compile, put the replication back and compile, that works until I do some change on the blueprint where this variable is and the error is back.
The function OnRep_IndexOnHand and the variable IndexOnHand are on the same blueprint.
Anyone have any idea how can I fix this?
Thank you.