Tab->space & caption fix