Fixed a bug having to do with multiple function declaration