Bullet is flying sideways instead of straight?

Whenever my bullet is instantiated it always get instantiated, then flies right if I turn my ship from facing forwards to facing left it flies up. Here is the code. Thanks!

using UnityEngine;
using System.Collections;

public class MoveForward : MonoBehaviour {

	public float maxSpeed = 5f;

	// Update is called once per frame
	void Update () {
		Vector3 pos = transform.position;
		
		Vector3 velocity = new Vector3(0, maxSpeed * Time.deltaTime, 0);
		
		pos += transform.rotation * velocity;

		transform.position = pos;
	}
}

have you tried changing

Vector3 velocity = new Vector3(0, maxSpeed * Time.deltaTime, 0);

to

Vector3 velocity = new Vector3(0, 0, maxSpeed * Time.deltaTime);

or

Vector3 velocity = new Vector3(maxSpeed * Time.deltaTime, 0, 0);

because as far as I know that is the part that defines it’s direction