Fix #631 file/new behavior
Fix error
Fix matchaddpos() detection
Merged