minor potential bug correction