fixed overwrite error