fix bug to run local