Fixed bug with applying pixel buffer.