Fix wrong argument to string.format

fix reference to non existent argument msg