Fixed rules validation in preview