Fixed wrong prototype and use of parameter