Fixed Encoding decoder
Fixing window management issues