fix -q+o bug

This fixes issue #221.