fixing bug 988