Stepper misses steps on low speeds

Thank for you that. I have changed the code in the original post with correct formatting.