Fixes AWS auth bugs.