Fix refcount error

Signed-off-by: Francis Giraldeau <francis.giraldeau@gmail.com>