Fix bug in FF during complete event