You have to calibrate the proximity sensor. I dont know why, but sometimes it gets corrupted data when fleshing...
Go to Dialer and dial: *#*#miui#*#* (6484), and from the menu, choose proximity.. Put the phone face up, do not put anything above it, only the ceiling :) , and press calibrate...