Fixed bad var useage