Fixed wrong use of deleted function.

Signed-off-by: FrankHB <frankhb1989@gmail.com>