fixed a bug resulting from bad copypasta (not spagetti though, more like rotini)