fix wrong cur in file