fixed typo, introduced during simplifying the original patch