Fix AWS error when deploying