Fixed local and global trends mixed up when switching between the two rapidly.