measurements bugfix