fix gdeclare private crash