Fixed adapter - forgot to convert to int!