Fixed bug with detecting IPG edge types