fixed nan bug, cropped data

still doesn’t work