deployAtEnd does not work