fix for  Hiroshi Miura <miurahr@linux.com> patch