fix getUsername
array() -> []