If you are using 14.X then you might face the issue and it might not work the way you like.
If you download 19.x or the latest from the master as @agrawalravi90 suggested, that would work the way you like .
The behaviour you have seen in 14.x is a bug and it is fixed in version 19.x or the master branch.