caption display problem

1. fix the bug that the first caption and the second one will become current at the same time when displaying right captions.
2. fix the bug that the first caption comes current by default.