Fixed wrong variable names