fix possible race condition
fixes #4 too many arguments reported