Now it works correctly