Fixed typo
Fixed array returning null