Now check_range works ok
Temporarily solved pdf reports