Rough Idling

The past couple of times I've put my boat in its been warming up rather rough. Once it gets up to temp no problems at all. Could this just be a bad load of gas or possibly a bad sensor?