Fixed problem with invalid type assertion.