Fixed issue #1334.