Correctly add caption property