fix premature callback