Make sure MIN and MAX will never act strange

This should be a no-brainer.