correct minimum and maximum mark conversion

Signed-off-by: semteacher <semteacher@gmail.com>