swift: fix init err