fixed level merge problems