fixing first frame detection (closes #149)