fixed configuring rendering for wrong window