wrong modal asignment fix