wavefront: bug fix

--HG--
branch : stable