fixed error localtion