Bugs in autofill script

The background context menu has an option to “Auto-fill” with credentials. Though on one page it doesn’t populate the username until after the second time this is chosen. name="loginUsername" value="Username"