fixed a bug on baby discharge