Fix a bug (when class name equals to prefix); PHP5.3 compatibility