fixed mathias bug #149