fixed apply modal not working