Fix issue on deleting a block attribute