fixed hardware acceleration bug