Fix deploy phase