suggested fix for Issues #570 #589