Fixed comparison to incorrect property