fix barclamp metadata and attributes