Double entry correction script