fixed pixel bugs