fix bug in spec_helper