Oh really i always try to buy a perk if i can even if it drops me to one hp.Yeah it was the chest from the white enemies.
OK i tried again and this time everything worked fine on the web version. so maybe its just inconsistent.
Thanks you for confirming for the chest and for your feedback about hp spending :) !