fix logic and ln command.