fixed right update shell script