fixed check-syntax rule