Corrected bug in serial opened variable