Exception does not work with %s