Fix `register_symbols` lua function.