fix logic phpdbg