solving bug #76