corrected bugs