fixed an issue with type cast in get