Why is deploy not running first?