fixed #526

thanks, @bromagosa, for reporting it!