Fixes bug in refresh_from_meta()