Fixed incorrect Z_LVAL() usage