bugfix in replacement form