cubase 5 simple problem please help

Hello forum. I used cubase 5 for long time without any problem :wink: . I had to format my compter for a cleanup :confused: . re-installed everything as before. now when I try record a simple bar it doesn’t record the first note ( and sometimes the metronome also won’t sound at the first note as well) metronome set to Audio metronome.
i went to midi edit and it shows that the note is not recorded :frowning: .
I had this problem before and I forgot how to fix it please help.
external souncard (YAMAHA Audiogram 6)
behringer UMX250 controller keyboard