Update Prepare.php

Fix bug with undefined variable