fixes a bug in tidy-local