Fix type mismatch by Samsuck