fix deployment hook