fix problem noticed by @ dgageot