fixed bug in merging function signatures