build runtime error bug fix