fix validate keys