Add null ref check to cam shake, fix syntax errors