Fix bug with nexus deployment