Bug fix GPU refcnt