fix label and caption placement when caption not defined