Fixed boundary outputs for visual, seg. fault fix in sor