Fixed mysql issue