add a fix for issue 56 with a test