Fixed incorrect data types in partition methods.