fix bug in #715