fixinig rte initialization, and prepoverlay binding