fix pay lib bug1