fixed a few issues with direct source term calculation in gui