Fixed a minor bug in return type