Fix preview hooks