Fixing new piece handler validation