fixed minecraft window behavior