I used recent retropie image. I installed attract mode from experimental packages. I then ran update on all installed packages.
But i gave this problem.
I found the mistake if you initially install attract mode from binary instead of source you will get this problem.
Once I installed from source everything now works. Thank you.