fixed deployment bugs