Fixed BAM port issue