Fixed null typing error

Whoops sorry about that last pull request with the typing error in it