add quotation for when clause.