fixing instances when caption is in wrong spot or does not show up all