The measure boundary check code was implemented backwards.