eel: fix logic a bit