inline math bug fixed