Well, I managed to suddenly win after 5 attempts. Actually, running from ghost appeared not that hard. Just collected every ingredient I had stumbled upon, then suddenly entered cauldron room and... voila!