+/- fix index problem; fix bbcode replacement problem.

Signed-off-by: Euhow <euhowzy@gmail.com>