Fixes serial defines issue