Fixes malformed variant variables