Fixed deplying bugs