Added more debug in updateCustomAttributes method