fixed 2 syntax bugs