fixed bug 4