bugfixes in rename- scripts