Some fixes to the lab scripts