Fix syntax errors and video id not matched error