rect radius bug fix