Fix duplicates and error

Signed-off-by: anerik <anerikgames@gmail.com>