Fix shape path problem (fix #193)