prevent npe in attributes update