Fixed wrong variables names.