fix turning event lines back on with new period code
fix period.length