fixed bugs no work on webgl