fix to interaction onclick bug