Fix a bug when the user stops or removes a block. Does not work when using the debugging mode, otherwise it Works fine...