Fixes basic auth for ES