Seeing a worm again the morning after your deworming tablet is common, a single dose kills adult worms but doesn't always clear eggs already laid nearby, so some can still be seen briefly afterward. This doesn't usually mean the treatment failed.
Next Steps
Keep nails short, wash hands often, and wash bedding and underwear in hot water, since these worms spread easily through surfaces. See a physician about repeating the dose after two weeks and treating the whole household together.