Fixed a variable error and fixed white spacing issues