fixing bug remote modal