AHD lists both. It's metathesis, the same linguistic process that gave us third for thrid and bird for brid.