Fixed the minus and abs values