Fixed bug with out statement