Fixed most dumb bug in progamming history