fixed code error