fixed bug with return from prout