added convert to number in resolve