correcting modal view error