fixed initial pop detection