fixed runonce bug