fix problem with _WAK patch