Now it works as it is supposed to