avoiding invalid arg to wait

fixes #17