Fixing 400 error