Fix empty caption issue