fixed random bug #114