I coped with the error (Syntax error: Bad fd number), by specifying the cause of the error