fix weird error #331