Set error bug fix.