fixed work with folders, hidden and locked layers