Fixed bug in gaussian size used as loop index