Main return code fix.