Added type casting
+ fixed normalize @var