Fix issue where @view decorator would break the plugin