Fix for folders without gates