Fixed print function to print frame type