Fixed a bug, I did this a while ago I just never commited it