Suppose a miner mines a block and the block gets added to 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?