prevent crash on double release