Fix semantic error