onclick bug fixed