My mistake. Though I tried this couple of times, it worked now. Just setting mental ray to default worked.