hacky fix to work with dynamically loaded content