fixed error for stackoverflow