I believe OP is returning from SXM and going through MIA. 45min is not enough time in MIA to go through customs and connect on next flight.