Fix for min