Workaround for type inference problem