Sensex up 51 points on fag-end buying