fix pixel view crashing