Fixed a bug in deploy