bug fix for checking that mug exists