Corrected variable error