fix zoom function for lifetime