bug in separate application (simple-php-api)