Fixed for PASCAL and INRIA datasets