amount error fix