Fixed bug in switch (wrong assign)