fixed bug on resize and signal keys without _dir_