Fixed masterList in java issue