fix a couple of bugs in the fluka-related routines