fix long cannot be cast to string error.