fix bug in deploy