Fixed wrong var name used to access attributes