fixed combine function error