Further #147 fixes

Signed-off-by: Mark Yasuda <yasuda@sipo.gess.ethz.ch>