Shadow Quality Settings Not Working Properly

I have set up a video settings menu where you can change shadow quality. Everything seems to be working fine except they don’t. Firstly the quality number used to change the quality(0,1,2 etc.) does not seem to match the quality setting. For example quality setting 1 doesn’t give me medium shadow setting, it gives me epic setting instead.
Second problem is when i set it to 0, which turns off all shadows, and then try to turn the shadows back on to 1 or higher, it won’t do anything. Shadows stays off and won’t turn back on. Talking about package standalone game.
What could be the issue here?
Thanks in advance.