fixed the bug of non-working post_only option