fix null pruduct error