fixed lda hang bug

introduced during late december hackfest. apologies.