Fixed incorrect variables