Fixes an error when display_callback is an array

display_callback did not work when using a callback like
array(&$this, 'my_callback')