fixed col switch js behaviour