scripts updated minor bug fix