Fix bug in get_pixel3d