Changed the patch for issue 179 (generating errors on every click)
Signed-off-by: Sheena <me@sheena.in>