The lawyer told us that I am listed as a dependent in the I-140 petition. -It does not matter. The I-140 is irrelevant to you (i.e. you are not the beneficiary, but your spouse only).