fixes specs and bug on quote