Fix memory issue
Run remove block before removing item