Omg how all this was even working correctly?