One Pixel: Optimization and bug solving

Optimization and bug solving