adding cast to prevent undefined errors
upgrade: insert/move Wysiwyg before Tinymce