fixed deletion of scriptBricks