fixed small ptr fault