fixed bug on metadata reload