Fix deploy errors