Fixing small bugg in serialOut that creates thread locking