Fixes #9 with a correct warning message