fix autounspec:apply patch from baracoder

fixes #1723