Fixed directory in hook