fixed vital issue #327