Fixed bug when calling saved set hook