corrected a nasty bug, resolves #18