tried to fix bug in awscredentials