reference bug fix. last lost