clean up null keys