fixed a small frame issue in xMapply