Fix prototype mismatch of init function