Fixes aws not defined error