Fix saving warnings not shown correctly
We should check the local variable instead of asking the source object.