File open bug in PayMaster class