Fixed error in #314