Fix to support civi 4.5