fix 312

fix #312, caused by #282