Suppose a miner mined a block and the block got added in the main chain of the block chain. He must have got his mining fee then. Now suppose that due to a fork sometimes later, the block that he mined is no longer a part of the main chain, i.e. that block is orphaned now. Then would he retain his mining fee or would it get deducted?