Fixed errors found during synthesis.