Fix constructor for API versions below 10