Added code to fix PERMNOs