Compile fixes: fixed typo and duplicates