fix first time deploy bug