Default Changing stock ROM from f400l to f400s

Hi, i owned G3 F400s but yesterday i bricked my device , when i m trying to flash my g3 is suddenly detect as f400l which is weird. does any1 can help me changing it back from F400L to F400S?

cheers