fixed bug in deploy