Fixed error in #1183