Fix incorrect return type