Fixed latex reference issue: run it twice.