fix awful reference bug