fix bug, add meta code check in snapshot