corrected bug