Fixed a bug using wrong device id when creating context.