fixed bug in equation numbering