fix for issue 47 in place.