fixed bug in recent commit, thanks Olivier Johner