Fix for crafting dialog allowing negative input