fixed bug when wanting to change an output to input in one click