Ticket #3119. Tune the check actually to make calculations work