fixed a bug where the plugin would stop working when the caption was empty