bug fixes for old php version