fixed bug with quote types and quotes