fixed issue where monotonicy check resulted into an error