fixed warning: initialized field overwritten