Fix dont working function