fixed nested script