fixed rare bug and made run.sh