Fix automatic dealloc tap

Bug fix