fixed weird modal error