Fixing a bug in swaddling