Fixing return type to make Closure compiler happy