fixed initialize variables 'bug