thanks modal bug fix