Chech the output of LRANGE before calling map() on it.