fix possible UnsupportedOperationException