Visibility macro does not modify future methods in legacy mode