Pick suitable nicknames if they like them.
You might've been having a regular conversation and accidentally referred to a guy as 'she', or the other way round.
Usually you just laugh it off and correct yourself when that happens, so treat it the same way.