Fix bug preventing cell magic to run in baground