fix eval-when issue for *patterns*