fixed crash when passing variables through the << operator in niostream