Add some code to migrate from 1.0 to 1.2
Only check when the length is greater than 0
Fix a small bug
Override for Firefox