Steps to reproduce the problem:
Create a table with an image inside any cell
Wrap both the table and the image with a Scroll Title macro each and give them a caption
Define a PDF template with a caption prefix for tables and a different one for figures
Export the page using the template
Expected result:
Table and figure receive their caption with their corresponding prefix
Actual result:
Table receives right prefix
Figure receives prefix from table