Fixed logic blocks not getting removed when dropped in sidebar