fixed mysql issue