fixed reverse definitions bug