mjolnir: fixes the function to change window