fixed wrong window dimensions