fix bug on sys init.