Fixed some notices -- thanks to jesse.glaves on the forums!