On a problem of L. Moser