Fix type on attrs