Fixed attr checking.