Fixes bucket credentials