Fixed almost bugs in sensor map form.