Fix static gen link