fixed php error in lib files