bug fixed for localhost