fix pixels counter