Fixed error bug