fixed pixel detection
fixed pixel detection