fixed null values for writePipe