Remove double-invocations to prevent buffer-overflow vulnerability.