Fix application info inclusion in hooks