A note on a problem of Matlis