ReferenceField works in command-line
Fix weap plugin