Remove shift that was supposed to remove the callback only when it existed

Signed-off-by: Henrique Vicente <henriquevicente@gmail.com>