enum bug fixed.