Fix Fatal error: Can't use function return value in write context