bug fixed, type mistake