Fixing a few bugs in the eployment route