bug fix from Julien - thanks