fix #1181 and remove logging