ViolaJones: fixed bugs