Fixed bug related to pending wages