fix equality problem with tuple storage format