Minor fixes to sensor frame handling