small fixes to video input