fixed scripts error