bugfix: before ajax caption not rendered