Fixed various intrinsic functions