just a small fix for localhost check