Fixing missplaced prototype declaration