Fixes class comparison with properties