Fixes error with rte embed dialog