Perez confirms Lopetegui's job is safe