Add trial fix to stack overflow problem #179