bug in lua script execution, lua pops the script after pcall, need to copy the block so that the copy get's removed and not the original