fixing Issue #178

fixing Issue #178