finally fixed error