min and max values for non-existing boundaries fixed