rabin square bug fix