Fixed error in #1206