mdp: some fixes

Change-Id: Ie01748f29c5928f7b051eae7f73346bd38457b65