fixed error bug