reply script bugfix