fixing nill popinter issue