Small fix to comply with modified api