almost completely fixed attachment custom fields inside file gallery metabox