Fixing scala measuring