fix for multiple prog statements