fixing serial issue