fixed #604. Thanks, @Gubolin!