fixed bug #57, at least in most cases