Fixed all syntax bugs