Fixed typo
Fixed type error
Fixed minor bug
Fixed another minor bug
Fixed type conversion