Fixed some types, add t function to the error message.