bug fixed for #39