Fixed typo in controller causing delay when printing after changing patterns