fixed a bug in frontend-backend communication (pipe).