Fix minor issues in measurement_window

Signed-off-by: Tomas Hozza <thozza@gmail.com>