fix genguide script