Fixed multiple-islands-bug