fixing run-once errors