Fixed error reporting in flex modifiers