fix obvious bug, remove debug